package com.example.medical.service.impl;

import com.example.medical.service.EquipmentPurchaseService;
import com.example.medical.domain.EquipmentPurchase;
import com.example.medical.mapper.EquipmentPurchaseMapper;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class EquipmentPurchaseServiceImpl implements EquipmentPurchaseService {

    @Resource
    private EquipmentPurchaseMapper equipmentPurchaseMapper;

    @Override
    public int getPurchaseCount(String purchaseDate) {
        return equipmentPurchaseMapper.getPurchaseCount(purchaseDate);
    }

    @Override
    public List<EquipmentPurchase> getHotEquipment(int limit) {
        return equipmentPurchaseMapper.getHotEquipment(limit);
    }


}